home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / frio / r3rimage.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  5.5 KB  |  175 lines

  1.  
  2. // JavaScript wrapper for r3rimage.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_RIMAGE_H = 1;
  7. include("oops/r3root.js")
  8.  
  9.  
  10. var R3CLID_RIMAGE = 559;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Class method. Frees images which have not been used during the last R3RIMGCA_CleanupCount    * cleanup
  16. //      method calls.
  17. // p3: Boolean, force full cleanup. If true all unused images are freed regardless of cleanup counting.    
  18.  
  19. R3RIMGCM_CLEANUPCACHE = 559001;
  20.  
  21. function mR3RIMGCM_CLEANUPCACHE(p3) {
  22.   DoA(this.r3obj, 559001, p3, R3TID_BOOLEAN, 0);
  23. }
  24.  
  25. // Description: Class method. Opens the given file image and converts it    * to specified format and
  26. //      resolution.
  27. // Returns: Boolean, true if succeeded
  28. // p1: String, source file
  29. // p2: String, target file
  30. // p3: Tag[], R3RIMGA_Width, R3RIMGA_Height, R3RIMGA_ImageClid    
  31.  
  32. R3RIMGCM_CONVERTFILEIMAGE = 559006;
  33.  
  34. function mR3RIMGCM_CONVERTFILEIMAGE(p1, p2, p3) {
  35.   return   Do3(this.r3obj, 559006, p1, R3TID_STRING, 0, p2, R3TID_STRING, 0, p3, R3TID_TAG, R3TNF_ARRAY);
  36. }
  37.  
  38. // Description: Class method. Installs image cache refresh hook. The hook object is called if a
  39. //      searched image    * file is not found or if it is not up to date. Hook
  40. //      call goes as: *    * image_found = R3SendMsg3(hook_obj, hook_mth, filename, filestatus, taglist); *    * Callback method should
  41. //      return TRUE if search was successful and image loading should be tried again.    * If it
  42. //      returns FALSE, the next installed hook is called.    * Hook parameter p2 is R3FILESTATUS *, an
  43. //      optional file specs. Taglist is currently unused.
  44. // Returns: Boolean, true if hook installation succeeded
  45. // p1: Object, callback object
  46. // p3: Integer, callback method    
  47.  
  48. R3RIMGCM_INSTALLREFRESHHOOK = 559007;
  49.  
  50. function mR3RIMGCM_INSTALLREFRESHHOOK(p1, p3) {
  51.   return   DoA2(this.r3obj, 559007, p1, R3TID_OBJECT, 0, p3, R3TID_INTEGER, 0);
  52. }
  53.  
  54. // Description: Class method. Removes a hook set by R3RIMGCM_INSTALLREFRESHHOOK.
  55. // p1: Object, callback object
  56. // p3: Integer, callback method    
  57.  
  58. R3RIMGCM_REMOVEREFRESHHOOK = 559008;
  59.  
  60. function mR3RIMGCM_REMOVEREFRESHHOOK(p1, p3) {
  61.   DoA2(this.r3obj, 559008, p1, R3TID_OBJECT, 0, p3, R3TID_INTEGER, 0);
  62. }
  63.  
  64. // Description: Class method. Tries opening an image file with the given name. If succeeds,    * the
  65. //      actual full path is copied to parameter string p1. Possible refresh hooks are called *
  66. //      if the image is not found.
  67. // Returns: Boolean, true if image found
  68. // p1: String, pointer to a string buffer (LEN_DOSNAME chars) to which the full file path is
  69. //      copied
  70.  
  71. R3RIMGCM_GETACTUALNAME = 559009;
  72.  
  73. function mR3RIMGCM_GETACTUALNAME(p1) {
  74.   return   DoA2(this.r3obj, 559009, p1, R3TID_STRING, 0, 0, R3TID_INTEGER, 0);
  75. }
  76.  
  77. // Description: Create binding object for the image, with default bindings.
  78. // Returns: Object, binding object
  79.  
  80. R3RIMGM_CREATEBINDINGOBJECT = 559010;
  81.  
  82. function mR3RIMGM_CREATEBINDINGOBJECT() {
  83.   return R3ToJS(  DoA(this.r3obj, 559010, 0, R3TID_INTEGER, 0));
  84. }
  85.  
  86.  
  87.  
  88.  
  89. R3RIMGA_FileName = 559500;
  90. function SetR3RIMGA_FileName(value) {
  91.   R3Set(this.r3obj, R3RIMGA_FileName, value, R3TID_STRING, 0); 
  92. }
  93.  
  94. function GetR3RIMGA_FileName() {
  95.   return R3Get(this.r3obj, R3RIMGA_FileName, R3TID_STRING, 0); 
  96. }
  97.  
  98. R3RIMGA_BindingObject = 559501;
  99. function SetR3RIMGA_BindingObject(value) {
  100.   R3Set(this.r3obj, R3RIMGA_BindingObject, value, R3TID_OBJECT, 0); 
  101. }
  102.  
  103. function GetR3RIMGA_BindingObject() {
  104.   return R3ToJS(R3Get(this.r3obj, R3RIMGA_BindingObject, R3TID_OBJECT, 0)); 
  105. }
  106.  
  107. R3RIMGA_RamImage = 559502;
  108. function GetR3RIMGA_RamImage() {
  109.   return R3ToJS(R3Get(this.r3obj, R3RIMGA_RamImage, R3TID_OBJECT, 0)); 
  110. }
  111.  
  112. R3RIMGA_Width = 559503;
  113. function GetR3RIMGA_Width() {
  114.   return R3Get(this.r3obj, R3RIMGA_Width, R3TID_INTEGER, 0); 
  115. }
  116.  
  117. R3RIMGA_Height = 559504;
  118. function GetR3RIMGA_Height() {
  119.   return R3Get(this.r3obj, R3RIMGA_Height, R3TID_INTEGER, 0); 
  120. }
  121.  
  122. R3RIMGA_Frame = 559505;
  123. function SetR3RIMGA_Frame(value) {
  124.   R3Set(this.r3obj, R3RIMGA_Frame, value, R3TID_INTEGER, 0); 
  125. }
  126.  
  127. R3RIMGA_TotalFrames = 559506;
  128. function GetR3RIMGA_TotalFrames() {
  129.   return R3Get(this.r3obj, R3RIMGA_TotalFrames, R3TID_INTEGER, 0); 
  130. }
  131.  
  132. R3RIMGA_ImageChanged = 559507;
  133. function SetR3RIMGA_ImageChanged(value) {
  134.   R3Set(this.r3obj, R3RIMGA_ImageChanged, value, R3TID_BOOLEAN, 0); 
  135. }
  136.  
  137. var R3RIMGA_OpenSilently = 559508; // Boolean
  138. R3RIMGA_TrueClass = 559509;
  139. function GetR3RIMGA_TrueClass() {
  140.   return R3Get(this.r3obj, R3RIMGA_TrueClass, R3TID_INTEGER, 0); 
  141. }
  142.  
  143. var R3RIMGA_OutputClid = 559510; // Integer
  144. var R3RIMGA_OutputImage = 559511; // Object
  145.  
  146.  
  147. function r3Rimage () { 
  148.    this.base = r3God;
  149.    if(arguments.length) {
  150.       this.base(R3CLID_RIMAGE, arguments);
  151.    }
  152.    // Methods
  153.    this.CLEANUPCACHE=mR3RIMGCM_CLEANUPCACHE;
  154.    this.CONVERTFILEIMAGE=mR3RIMGCM_CONVERTFILEIMAGE;
  155.    this.INSTALLREFRESHHOOK=mR3RIMGCM_INSTALLREFRESHHOOK;
  156.    this.REMOVEREFRESHHOOK=mR3RIMGCM_REMOVEREFRESHHOOK;
  157.    this.GETACTUALNAME=mR3RIMGCM_GETACTUALNAME;
  158.    this.CREATEBINDINGOBJECT=mR3RIMGM_CREATEBINDINGOBJECT;
  159.  
  160.    // Attributes
  161.    this.GetFileName=GetR3RIMGA_FileName;
  162.    this.SetFileName=SetR3RIMGA_FileName;
  163.    this.GetBindingObject=GetR3RIMGA_BindingObject;
  164.    this.SetBindingObject=SetR3RIMGA_BindingObject;
  165.    this.GetRamImage=GetR3RIMGA_RamImage;
  166.    this.GetWidth=GetR3RIMGA_Width;
  167.    this.GetHeight=GetR3RIMGA_Height;
  168.    this.SetFrame=SetR3RIMGA_Frame;
  169.    this.GetTotalFrames=GetR3RIMGA_TotalFrames;
  170.    this.SetImageChanged=SetR3RIMGA_ImageChanged;
  171.    this.GetTrueClass=GetR3RIMGA_TrueClass;
  172. }
  173.  
  174. r3Rimage.prototype=new r3Root;
  175. // r3rimage.h_H